import { Component, OnInit, ViewChild } from '@angular/core';
import { AuditCenterPipePipe } from '../../pipe/audit-center-pipe.pipe';

@Component({
  selector: 'app-audit-center',
  templateUrl: './audit-center.component.html',
  styleUrls: ['./audit-center.component.less'],
  providers: [AuditCenterPipePipe]
})
export class AuditCenterComponent implements OnInit {
  @ViewChild('auditModal') auditModal: any
  constructor(private auditCenterPipePipe: AuditCenterPipePipe) { }
  ngOnInit() {
    console.log('在组件中使用:', this.auditCenterPipePipe.transform('component中使用'))
  }
  audit() {
    this.auditModal.isVisible = true
  }
}
